package com.Brave.manager.Demo01;

import java.io.*;

public class Demo07 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bs = new BufferedInputStream(new FileInputStream("D:\\JAVA\\s.txt"));
        BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream("D:\\JAVA\\html\\a.txt"));

        byte[] bys = new byte[1024];
        int len;
        while ((len = bs.read(bys)) != -1) {
            os.write(bys, 0, len);
        }
        bs.close();
        os.close();
    }
}
